package com.ruoyi.jiuyvanrenwu.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.car.api.domain.CheCar;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 救援任务对象 che_rescue
 * 
 * @author ruoyi
 * @date 2025-01-02
 */
@Data
public class CheRescue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 救援类型 */
    @Excel(name = "救援类型")
    private Long type;

    /** 用户id */
    private Long userId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 起点 */
    private String start;

    /** 终点 */
    @Excel(name = "终点")
    private String end;

    /** 位置 */
    @Excel(name = "位置")
    private String address;

    /** 经度 */
    private Long longitude;

    /** 纬度 */
    private Long latitude;

    /** 车辆id */
    @Excel(name = "车辆id")
    private Long carId;

    /** 救援时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "救援时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rescueTime;

    private CheCar car;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setStart(String start) 
    {
        this.start = start;
    }

    public String getStart() 
    {
        return start;
    }
    public void setEnd(String end) 
    {
        this.end = end;
    }

    public String getEnd() 
    {
        return end;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setLongitude(Long longitude) 
    {
        this.longitude = longitude;
    }

    public Long getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(Long latitude) 
    {
        this.latitude = latitude;
    }

    public Long getLatitude() 
    {
        return latitude;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setRescueTime(Date rescueTime) 
    {
        this.rescueTime = rescueTime;
    }

    public Date getRescueTime() 
    {
        return rescueTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("userId", getUserId())
            .append("phone", getPhone())
            .append("start", getStart())
            .append("end", getEnd())
            .append("address", getAddress())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("carId", getCarId())
            .append("remark", getRemark())
            .append("rescueTime", getRescueTime())
            .toString();
    }
}
